package com.maxlen.goods.entity.vo;

import com.maxlen.common.valid.AddValid;
import com.maxlen.common.valid.StatusValue;
import com.maxlen.common.valid.UpdateValid;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

@Data
public class ProductAttrValueVO {

    /**
     * 属性id
     */
    @NotNull(message = "修改操作id不能为空")
    private Long attrId;

    /**
     * 属性名
     */
    @Length(min = 1,message = "属性名不能为空")
    @Length(max = 10, message = "属性名不能超过10个字符")
    private String attrName;

    /**
     * 属性值
     */
    @Length(min = 1,message = "属性值不能为空")
    @Length(max = 10, message = "属性值不能超过10个字符")
    private String attrValue;

    /**
     * 快速展示【是否展示在介绍上；0-否 1-是】
     */
    @StatusValue(val = {0,1},message = "快速展示必须为0或1")
    private Integer quickShow;


}
